﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <title>会员列表</title>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <link href="/style/admin/style/adminStyle.css" rel="stylesheet" type="text/css" />
        <script src="/style/admin/js/jquery.js"></script>
    </head>
    <body>
        <div class="wrap">
            <div class="page-title">
                <span class="modular fl"><i class="account_user"></i><em>会员列表</em></span>
                <span class="modular fr"><a href="account_details.html" class="pt-link-btn">资金变动明细</a></span>
            </div>
            <form id="PacketForm" onsubmit="return false">
                <table class="noborder">
                    <tr>
                        <td style="text-align:right;width:15%;">当前会员：</td>
                        <td>{{$data->name}}</td>
                    </tr> 
                    <tr>
                        <td style="text-align:right;">可用资金账户：</td>
                        <td>
                            <select class="textBox" name="operate">
                                <option value="add ">增加</option>
                                <option value="reduce">减少</option>
                            </select>
                            <input type="text" class="textBox length-short" name="money" value=""/>
                            <input type="hidden" name="id" value="{{$data->id}}"/>
                            <span class="middle"><i>￥</i><b>{{$data->money}}.00</b></span>
                        </td>
                    </tr> 
                    <tr>
                        <td style="text-align:right;"></td>
                        <td>
                            <input type="submit" onclick="edit();" value="确认" class="tdBtn"/>
                            <input type="reset" value="重置" class="tdBtn"/>
                        </td>
                    </tr>
                </table>
            </form>
        </div>
        <script>
              function edit(){
                   str=$("#PacketForm").serialize();
                   $.post('/admin/users/cashEdit',{str:str,"_token":"{{csrf_token()}}"},function(data){
                          if(data==1){
                              window.location.href='/admin/users';
                          }
                   })
              }
        </script>
    </body>
</html>